Style Manager
Interface for managing style of the `map`.
Functions
addPersistentStyleCustomLayer
Link copied to clipboard
@NonNull()
Content copied to clipboard
Adds a new [style custom layer](https://docs.mapbox.com/mapbox-gl-js/style-spec/#layers).Note: This is an experimental API and is a subject to change.Whenever a new style is being parsed and currently used style has persistent layers,an engine will try to do following:- keep the persistent layer at its relative position- keep the source used by a persistent layer- keep images added through `addStyleImage` methodIn cases when a new style has the same layer, source or image resource, style's resources would beused instead and `MapLoadingError` event will be emitted.
addPersistentStyleLayer
Link copied to clipboard
@NonNull()
Content copied to clipboard
Adds a new [style layer](https://docs.mapbox.com/mapbox-gl-js/style-spec/#layers).Note: This is an experimental API and is a subject to change.Whenever a new style is being parsed and currently used style has persistent layers,an engine will try to do following:- keep the persistent layer at its relative position- keep the source used by a persistent layer- keep images added through `addStyleImage` methodIn cases when a new style has the same layer, source or image resource, style's resources would beused instead and `MapLoadingError` event will be emitted.
addStyleCustomGeometrySource
Link copied to clipboard
@NonNull()
Content copied to clipboard
addStyleCustomLayer
Link copied to clipboard
@NonNull()
Content copied to clipboard
addStyleImage
Link copied to clipboard
@NonNull()
Content copied to clipboard
addStyleLayer
Link copied to clipboard
@NonNull()
Content copied to clipboard
addStyleSource
Link copied to clipboard
getStyleDefaultCamera
Link copied to clipboard
Returns the map style's default camera, if any, or a default camera otherwise.The map style's default camera is defined as follows:- [center](https://docs.mapbox.com/mapbox-gl-js/style-spec/#root-center)- [zoom](https://docs.mapbox.com/mapbox-gl-js/style-spec/#root-zoom)- [bearing](https://docs.mapbox.com/mapbox-gl-js/style-spec/#root-bearing)- [pitch](https://docs.mapbox.com/mapbox-gl-js/style-spec/#root-pitch)The style default camera is re-evaluated when a new style is loaded.
getStyleImage
Link copied to clipboard
getStyleJSON
Link copied to clipboard
getStyleLayerProperties
Link copied to clipboard
getStyleLayerProperty
Link copied to clipboard
@NonNull()
Content copied to clipboard
getStyleLayerPropertyDefaultValue
Link copied to clipboard
@NonNull()
Content copied to clipboard
getStyleLayers
Link copied to clipboard
getStyleLightProperty
Link copied to clipboard
@NonNull()
Content copied to clipboard
getStyleSourceProperties
Link copied to clipboard
getStyleSourceProperty
Link copied to clipboard
@NonNull()
Content copied to clipboard
getStyleSourcePropertyDefaultValue
Link copied to clipboard
@NonNull()
Content copied to clipboard
getStyleSources
Link copied to clipboard
getStyleTerrainProperty
Link copied to clipboard
@NonNull()
Content copied to clipboard
getStyleTransition
Link copied to clipboard
getStyleURI
Link copied to clipboard
invalidateStyleCustomGeometrySourceRegion
Link copied to clipboard
@NonNull()
Content copied to clipboard
invalidateStyleCustomGeometrySourceTile
Link copied to clipboard
@NonNull()
Content copied to clipboard
isStyleLayerPersistent
Link copied to clipboard
isStyleLoaded
Link copied to clipboard
Check if the style is completely loaded.Note: The style specified sprite would be marked as loaded even with sprite loading error (An error will be emitted via `MapLoadingError`).Sprite loading error is not fatal and we don't want it to block the map rendering, thus the function will still return `true` if style and sources are fully loaded.
moveStyleLayer
Link copied to clipboard
@NonNull()
Content copied to clipboard
removeStyleImage
Link copied to clipboard
removeStyleLayer
Link copied to clipboard
removeStyleSource
Link copied to clipboard
setStyleCustomGeometrySourceTileData
Link copied to clipboard
setStyleJSON
Link copied to clipboard
setStyleLayerProperties
Link copied to clipboard
setStyleLight
Link copied to clipboard
setStyleLightProperty
Link copied to clipboard
setStyleSourceProperties
Link copied to clipboard
setStyleSourceProperty
Link copied to clipboard
setStyleTerrain
Link copied to clipboard
setStyleTerrainProperty
Link copied to clipboard
setStyleTransition
Link copied to clipboard
open fun setStyleTransition(@NonNull() transitionOptions: TransitionOptions)
Content copied to clipboard
setStyleURI
Link copied to clipboard
styleLayerExists
Link copied to clipboard
styleSourceExists
Link copied to clipboard
subscribe
Link copied to clipboard
unsubscribe
Link copied to clipboard
updateStyleImageSourceImage
Link copied to clipboard
Inheritors
CameraManager
Link copied to clipboard